package com.scf.service;

import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.groups.Default;

/**
 * @author sunchuanfu
 */
@Validated(Default.class)
public interface HelloService {
    // 接口定义使用注解验证
    void hello(@NotNull @Min(10) Integer id, @NotNull String name);
}